package com.leyou.common.enums;

import lombok.Getter;

@Getter
public enum ExceptionEnum {


    PRICE_CANNOT_BE_NULL(400, "价格不能为空！"),
    CATEGORY_NOT_FOUND(204,"对应分类信息未找到"),
    DATA_NOT_FOUND(204,"所查询数据未找到"),
    DATA_TRANSFER_ERROR(500,"通过Bean处理器，类型转换过程失败"),
    DATA_SAVE_ERROR(500,"数据保存失败"),
    DATA_MODIFY_ERROR(500,"数据修改失败"),
    INVALID_REQUEST_PARAM(400,"请求参数有误"),
    DATA_UPLOAD_ERROR(500,"文件上传失败"),
    DATA_DELETE_ERROR(500,"数据删除失败"),
    DIRECTORY_WRITER_ERROR(500,"文件目录创建失败"),
    FILE_WRITER_ERROR(500,"文件保存失败"),
    SEND_MESSAGE_ERROR(500,"短信发送失败"),
    DATA_SERVER_ERROR(500,"数据库服务器连接异常"),
    INVALID_USERNAME_PASSWORD(400,"用户名或密码错误"),
    INVALID_NOTIFY_SIGN(400,"微信回调的数据签名有误"),
    INVALID_NOTIFY_PARAM(400,"微信回调数据参数有误")
    ;

    private int status;
    private String message;

    ExceptionEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }
}